<?php

class JSONDataParser extends DataParser {

    public function parseData($data) {
        $arr = json_decode($data);
        foreach ($arr as $array) {
            $str[] = get_object_vars($array);
        }
        $this->setTotalItems(count($str));
        return $str;
    }
}
